package com.dongdongshop.serviceImpl;

import com.dongdongshop.mapper.TbAreasMapper;
import com.dongdongshop.pojo.TbAreas;
import com.dongdongshop.service.TbAreasService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@com.alibaba.dubbo.config.annotation.Service
public class TbAreasServiceImpl implements TbAreasService {
    @Autowired
    private TbAreasMapper tbAreasMapper;
    @Override
    public List<TbAreas> selectByArea(String area) {
         List<TbAreas> areasList = tbAreasMapper.selectByarea(area);
        return areasList;
    }

    @Override
    public TbAreas selectGetTownName(String town) {
        TbAreas areas = tbAreasMapper.selectGetName(town);
        return areas;
    }

}
